package com.excellence.mapper;

import com.excellence.pojo.Operation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 沈秉璋
 * @description 针对表【operation】的数据库操作Mapper
 * @createDate 2024-04-08 09:33:27
 * @Entity pojo.Operation
 */
@Mapper
public interface OperationMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Operation record);

    int insertSelective(Operation record);

    List<Operation> selectByUserId(Long id);

    List<Operation> selectAll();

    int updateByPrimaryKeySelective(Operation record);

    int updateByPrimaryKey(Operation record);

    //统计地块的农事次数
    int count(Integer massifId);
}
